<form name="ajax_form" id="ajax_form" action="<?php echo base_url(); ?>candidate/galery/insert" method="post" enctype="multipart/form-data" target="galery_iframe">
	<table class="table">
		<tbody>
		<?php if (!isset($edition) || !$edition) { ?>
			<tr>
				<td class="right rlabel"><label for="image"><?php echo $this->lang->line('galery_image'); ?>:</label></td>
				<td><input type="file" class="inputdiv" value="" id="image" name="image" /></td>
			</tr>
		<?php } ?>
			<tr>
				<td class="right rlabel"><label for="title"><?php echo $this->lang->line('galery_title'); ?>:</label></td>
				<td><input type="text" class="inputdiv" value="<?php echo $title; ?>" id="title" name="title" /></td>
			</tr>
			<tr>
				<td class="right rlabel"><label for="description"><?php echo $this->lang->line('galery_description'); ?>:</label></td>
				<td><textarea class="inputdiv" rows="3" value="" id="description" name="description"><?php echo $description; ?></textarea></td>
			</tr>
			<tr>
				<td colspan="2" class="center">
					<label for="btnEnter"><input type="submit" id="btnEnter" class="submit" value="<?php echo $this->lang->line('galery_save'); ?>" /></label>
				</td>
			</tr>
		</tbody>
	</table>
	<div id="result_ajax"></div>
	<input type="hidden" value="<?php echo $id_photo; ?>" name="idphoto" id="idphoto" />
</form>
<iframe id="galery_iframe" name="galery_iframe" class="hide"></iframe>